import http from "../utils/request";

export default   conponapi = () => {
  return {
    // 请求首页数据
    getData: () => http.get("/home/getData"),

    // 用户管理相关接口
    getUser: (params) => http.get("/user/get/", params),
    createUser: (data) => http.post("/user/create", data),
    deleteUser: (data) => http.post("/user/del", data),
    updateUser: (data) => http.post("/user/update", data),

    // 权限相关接口
    getMenu: (data) => http.post("/permission/getMenu", data),
  };
};